def waitcomplete():
    ...